// #include <stdio.h>//不创建临时变量交换两个数
//
// int main(void)
// {
//     int a = 0;
//     int b = 0;
//     scanf("%d %d",&a,&b);
//     a = a^b;
//     b = a^b;
//     a = a^b;
//     printf("a=%d b=%d",a,b);
//     return 0;
// }

// #include<stdio.h>//how many 1 in a int number

// int main()
// {
//     int a = 0;
//     scanf("%d",&a);
//     int count = 0;
//     for(int i = 0;i<32;i++)
//     {
//         if(a&(1<<i))
//             count++;
//     }
//     printf("%d",count);
//     return 0;
// }

#include<stdio.h>//how many even and odd number in a int number

int main()
{
    int a = 0;
    scanf("%d",&a);
    for(int i = 30;i>=0;i-=2)
    {
        printf("ou_count = %d",1&(a>>i));
    }
    printf("\n");
    for(int j = 31;j>=1;j-=2)
    {
        printf("ji_count = %d",1&(a>>i));
    }
    printf("\n");
}

#include <stdbool.h>
#include <stdio.h>

int main()
{
    int year = 0;
    int month = 0;
    int day = 0;
    while(scanf("%d %d",&year,&month)!=EOF)
    {
        switch(month)
        {
            case 1:
            case 3:
            case 5:
            case 7:
            case 8:
            case 10:
            case 12:
                day = 31;
            break;
            case 4:
            case 6:
            case 9:
            case 11:
                day = 30;
            break;
            case 2:
                if(year%400==0||(year%100!=0&&year%4==0))
                    day = 29;
                else
                    day = 28;
            break;
        }
        printf("%d\n",day);
    }
    return 0;
}



int main()
{
    int a = 0;
    int b = 0;
    scanf("%d %d",&a,&b);
    int num = a^b;
    int count = 0;
    for(int i = 0;i<32;i++)
    {
        if(num&(1<<i))
            count++;
    }
    printf("%d",count);
    return 0;
}